<div class="showComment">
    <div class="cm-title"><span>Bình luận</span> <h3><?php echo get_category_label($item['child_cat_id'],true).' - '.get_category_label($item['sub_cat_id'],true) ?></h3></div>
    <div class="formComment">
        <div id="mgs"></div>
        <form id="postComment" method="post" action="<?php echo site_url('post/comment') ?>">
            <div class="clearfix" id="userId" style="display: none;">
                <span><input type="text" name="phone" value="<?php echo @$member['mobile'] ?>" placeholder="Số điện thoại"></span>
                      <span><input type="text" name="email" value="<?php echo @$member['email'] ?>" placeholder="Email">
                      <input type="hidden" name="parent" value="0">
                      <input type="hidden" name="user_id" value="<?php echo @$member['id'] ?>">
                      <input type="hidden" name="post_id" value="<?php echo @$item['id'] ?>">
                      </span>
            </div>
            <div class="clearfix">
                <div class="cm-avatar"><img src="<?php echo base_url(thumb($member['avatar'],80,80)); ?>"></div>
                <div class="cm-edit">
                    <textarea name="comment" placeholder="Viết một bình luận"></textarea>
                </div>
            </div>
            <span class="btncomment"></span>
        </form>
    </div>
    <?php
        if(count($comment)>0 && count($comment)>7){
    ?>
        <div class="listComment">
            <div id="show_mess_success"></div>
            <?php foreach($comment as $key=>$val){?>
                <div class="itemComment">
                    <div class="u-avatar"><img src="<?php echo thumb($member['avatar'],44,44); ?>"></div>
                    <div class="cmInfo">
                        <div class="clear">
                            <?php if(!empty($val['user_id'])){
                            echo '<a href="#"><span><strong>'.getByUser($val['user_id'],2).'</strong></span></a>';
                        }else {
                            echo "<span><strong>".$val['phone']."</strong></span>";
                        }
                            ?>
                            <span><?php echo $val['comment'] ?></span>
                        </div>
                        <div class="clear">
                            <span class="date_reply">10:57 | 22.12.2012</span>
                            <span class="reply">Trả lời</span>
                        </div>
                    </div>
                </div>
            <?php } ?>
        </div>
    <?php  }else { ?>

            <div class="listComment">
                <div id="scrollbar1">
                    <div class="scrollbar"><div class="track"><div class="thumb"><div class="end"></div></div></div></div>
                    <div class="viewport">
                        <div class="overview">
                            <div id="show_mess_success"></div>
                            <?php foreach($comment as $key=>$val){?>
                            <div class="itemComment">
                                <div class="u-avatar"><img src="<?php echo thumb($member['avatar'],44,44); ?>"></div>
                                <div class="cmInfo">
                                    <div class="clear">
                                        <?php if(!empty($val['user_id'])){
                                        echo '<a href="#"><span><strong>'.getByUser($val['user_id'],2).'</strong></span></a>';
                                    }else {
                                        echo "<span><strong>".$val['phone']."</strong></span>";
                                    }
                                        ?>
                                        <span><?php echo $val['comment'] ?></span>
                                    </div>
                                    <div class="clear">
                                        <span class="date_reply">10:57 | 22.12.2012</span>
                                        <span class="reply">Trả lời</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <?php } ?>
            </div>
    <?php  } ?>
</div>